//
//  ProductDetailCell1.m
//  FloatClouds
//
//  Created by 黄威 on 16/9/9.
//  Copyright © 2016年 黄威. All rights reserved.
//

#import "ProductDetailCell1.h"
#import "ProductAllImageViewController.h"

@implementation ProductDetailCell1

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];

    if (self) {
        
        self.name = [[BaseLabel alloc]init];
        self.name.font = [UIFont fontWithName:@"Helvetica" size:19];
        [self.contentView addSubview:self.name];

        self.score = [[BaseLabel alloc]init];
        self.score.textColor = [UIColor redColor];
        self.score.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview:self.score];

        self.SCORE = [[BaseLabel alloc]init];
        self.SCORE.text = @"综合评分:";
        self.SCORE.textColor = [UIColor redColor];
        self.SCORE.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview:self.SCORE];

        self.image = [[UIImageView alloc]init];
        [self.contentView addSubview:self.image];
        self.imageView.userInteractionEnabled = YES;
        
         }

    return self;

}


- (void)layoutSubviews{

    [super layoutSubviews];
    
    self.image.frame = CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height * 0.8);
    
    self.name.frame = CGRectMake(10, self.bounds.size.height *0.8, self.bounds.size.width * 0.6, self.bounds.size.height * 0.2);
    
    self.SCORE.frame = CGRectMake(self.bounds.size.width * 0.6 +10,self.bounds.size.height *0.8  , self.bounds.size.width * 0.26, self.bounds.size.height * 0.2);
   
    self.score.frame = CGRectMake(self.bounds.size.width *0.9 + 10, self.bounds.size.height *0.8 ,self.bounds.size.width * 0.05 , self.bounds.size.height * 0.2);

}




@end
